<!--{% if site.duoshuo_shortname %}-->
<!--&lt;!&ndash; 多说评论框 start &ndash;&gt;-->
<!--<div class="ds-thread" data-thread-key="{{ site.url }}{{ page.url }}" data-title="{{page.title}}" data-url="{{ site.url }}{{ page.url }}"></div>-->
<!--&lt;!&ndash; 多说评论框 end &ndash;&gt;-->
<!--&lt;!&ndash; 多说公共JS代码 start (一个网页只需插入一次) &ndash;&gt;-->
<!--<script type="text/javascript">-->
    <!--var duoshuoQuery = {-->
        <!--short_name: "{{site.duoshuo_shortname}}"-->
    <!--};-->
    <!--(function() {-->
        <!--var ds = document.createElement('script');-->
        <!--ds.type = 'text/javascript';-->
        <!--ds.async = true;-->
        <!--ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';-->
        <!--ds.charset = 'UTF-8';-->
        <!--(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);-->
    <!--})();-->
<!--</script>-->
<!--&lt;!&ndash; 多说公共JS代码 end &ndash;&gt;-->
<!--{% endif %}-->

<!--{% if site.disqus_shortname %}-->
<!--<div id="disqus_thread"></div>-->
<!--<script>-->
    <!--/**-->
     <!--* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.-->
     <!--* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables-->
     <!--*/-->

    <!--var disqus_config = function() {-->
        <!--this.page.url = '{{ site.url }}{{ page.url }}'; // Replace PAGE_URL with your page's canonical URL variable-->
        <!--this.page.identifier = '{{ site.url }}{{ page.url }}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable-->
    <!--};-->

    <!--(function() { // DON'T EDIT BELOW THIS LINE-->
        <!--var d = document,-->
            <!--s = d.createElement('script');-->

        <!--s.src = '//{{site.disqus_shortname}}.disqus.com/embed.js';-->

        <!--s.setAttribute('data-timestamp', +new Date());-->
        <!--(d.head || d.body).appendChild(s);-->
    <!--})();-->
<!--</script>-->
<!--<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>-->
<!--{% endif %}-->

{% if site.comments.gitalk.enable %}
<div id="gitalk_thread"></div>
<script>
    var gitalk = new Gitalk({
        clientID: '{{ site.comments.gitalk.clientID }}',
        clientSecret: '{{ site.comments.gitalk.clientSecret }}',
        repo: '{{ site.comments.gitalk.repo }}',
        owner: '{{ site.comments.gitalk.owner }}',
        admin: '{{ site.comments.gitalk.admin }}',
        id: location.pathname,      // Ensure uniqueness and length less than 50{{ page.title }}
        distractionFreeMode: '{{ site.comments.distractionFreeMode }}'  // Facebook-like distraction free mode
    })

    gitalk.render('gitalk_thread')
</script>
<!--<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>-->
<!--{% endif %}-->
